.class Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;
.super Landroid/webkit/WebChromeClient;
.source "SPBrandEngageClient.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->getWebChromeClient()Landroid/webkit/WebChromeClient;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;


# direct methods
.method constructor <init>(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    .line 608
    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;)Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;
    .locals 1
    .parameter

    .prologue
    .line 608
    iget-object v0, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    return-object v0
.end method

.method private showJSDialog(Ljava/lang/String;Ljava/lang/String;)V
    .locals 4
    .parameter "url"
    .parameter "message"

    .prologue
    .line 618
    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    #getter for: Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->mShowingDialog:Z
    invoke-static {v1}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->access$13(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 619
    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    const/4 v2, 0x1

    #setter for: Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->mShowingDialog:Z
    invoke-static {v1, v2}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->access$6(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;Z)V

    .line 620
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    #getter for: Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->mActivity:Landroid/app/Activity;
    invoke-static {v1}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->access$12(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;)Landroid/app/Activity;

    move-result-object v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    #getter for: Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->mContext:Landroid/content/Context;
    invoke-static {v1}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->access$7(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;)Landroid/content/Context;

    move-result-object v1

    :goto_0
    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 621
    .local v0, dialogBuilder:Landroid/app/AlertDialog$Builder;
    sget-object v1, Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;->MBE_FORFEIT_DIALOG_TITLE:Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;

    invoke-static {v1}, Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher;->getUIString(Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, p2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 622
    const-string v2, "OK"

    new-instance v3, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7$1;

    invoke-direct {v3, p0}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7$1;-><init>(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 628
    const-string v2, "Cancel"

    new-instance v3, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7$2;

    invoke-direct {v3, p0}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7$2;-><init>(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 633
    new-instance v2, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7$3;

    invoke-direct {v2, p0}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7$3;-><init>(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;)V

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;

    .line 639
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 641
    .end local v0           #dialogBuilder:Landroid/app/AlertDialog$Builder;
    :cond_0
    return-void

    .line 620
    :cond_1
    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->this$0:Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;

    #getter for: Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->mActivity:Landroid/app/Activity;
    invoke-static {v1}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;->access$12(Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient;)Landroid/app/Activity;

    move-result-object v1

    goto :goto_0
.end method


# virtual methods
.method public onJsConfirm(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsResult;)Z
    .locals 1
    .parameter "view"
    .parameter "url"
    .parameter "message"
    .parameter "result"

    .prologue
    .line 612
    invoke-direct {p0, p2, p3}, Lcom/sponsorpay/sdk/android/publisher/mbe/SPBrandEngageClient$7;->showJSDialog(Ljava/lang/String;Ljava/lang/String;)V

    .line 613
    invoke-virtual {p4}, Landroid/webkit/JsResult;->cancel()V

    .line 614
    const/4 v0, 0x1

    return v0
.end method
